import sys 
sys.path.append('..')
from common.util import preprocess,create_co_matrix,cos_similarity

text = "You say goodbye and I say hello."
corpus,word_to_id,id_to_word = preprocess(text)
C = create_co_matrix(corpus,len(word_to_id))

c0 = C[word_to_id['you']]
c1 = C[word_to_id['i']]

print(cos_similarity(c0,c1))